<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./lib/jquery.js"></script>
</head>

<body>

  <input type="file" id="file1" />
  <button id="btnUpload">上传文件</button>

  <br />
  <img src="./images/loading.gif" alt="" style="display: none;" id="loading" />

  <script>
    $(function () {
      // 接口地址: http://www.liulongbin.top:3006/api/upload/avatar


      // 监听到Ajax请求被发起了

      // 监听到 Ajax 完成的事件


      $('#btnUpload').on('click', function () {

      })
    })
  </script>

</body>

</html>